package com.zenithmind.user.pojo.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zenithmind.common.base.BaseEntity;

import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * 验证码记录(VerificationCode)实体类
 *
 * @author zenithmind
 * @since 2025-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("verification_code")
public class VerificationCode extends BaseEntity{
    /**
     * 用户名
     */
    private String username;

    /**
     * 邮箱
     */
    private String email;

    /**
     * 验证码
     */
    private String code;

    /**
     * 验证码类型(0:登录,1:注册,2:重置密码)
     */
    private Integer type;

    /**
     * 过期时间
     */
    private LocalDateTime expireTime;

    /**
     * 验证状态(0:未验证,1:已验证)
     */
    private Integer verified;

    /**
     * 验证时间
     */
    private LocalDateTime verifiedTime;

    /**
     * IP地址
     */
    private String ipAddress;
} 